import {
    request
} from '../utils/request.js'
import QS from 'qs'; //将json字符串转对象
//登录接口
export const getList = (parmas) => {
        return request({
            url: 'YongHu/LoginIn',
            method: 'post',
            data: QS.stringify(parmas),
            re_header: 4
        })
    }
    //获取用户信息接口
export const getYongHuInfo = (parmas) => {
        return request({
            url: 'YongHu/GetYongHuInfo',
            method: 'get',
            data: parmas
        })
    }
    //动态列表 (好友动态)
export const getAllList = (parmas) => {
        return request({
            url: 'Dynamic/GetAllList',
            method: 'get',
            data: parmas
        })
    }
    // (我的访客)
export const getVisitorMyList = (parmas) => {
        return request({
            url: 'Visitor/GetMyList',
            method: 'get',
            data: parmas
        })
    }
    //我的动态列表 （ 我的动态）
export const getMyList = (parmas) => {
        return request({
            url: 'Dynamic/GetMyList',
            method: 'get',
            data: parmas
        })
    }
    //我喜欢的列表（我的点赞）
export const getMyLikeDataList = (parmas) => {
        return request({
            url: 'YongHu/GetMyLikeDataList',
            method: 'get',
            data: parmas
        })
    }
    //  点赞我的
export const getLikeMyDataList = (parmas) => {
        return request({
            url: 'YongHu/GetLikeMyDataList',
            method: 'get',
            data: parmas
        })
    }
    //评论列表 
export const getCommentList = (parmas) => {
        return request({
            url: 'Dynamic/GetCommentList',
            method: 'get',
            data: parmas
        })
    }
    //获取动态点赞列表
export const getRedList = (parmas) => {
        return request({
            url: 'Dynamic/GetRedList',
            method: 'get',
            data: parmas
        })
    }
    //在线
export const getIndexOnline = (parmas) => {
        return request({
            url: 'Online/GetIndex',
            method: 'get',
            data: parmas
        })
    }
    //我的动态删除接口   ?ItemId=295fc5fda0a0446fa95fc3c2c390c31c
export const getDeleteDynamic = (parmas) => {
        return request({
            url: 'Dynamic/DeleteDynamic',
            method: 'post',
            data: parmas
        })
    }
    //我的点赞删除接口
export const getDeleteToMyLike = (parmas) => {
        console.log(parmas, 'sss');
        return request({
            url: 'YongHu/DeleteToMyLike/' + parmas,
            method: 'post',
            data: QS.stringify({}),
            re_header: 1
        })
    }
    //点赞
     export const getInsertRedHeart = (parmas) => {
    console.log(parmas, 'sss');
    return request({
        url: 'Dynamic/InsertRedHeart' + parmas,
        method: 'post',
        data: QS.stringify({}),
        re_header: 1
    })
}
 //取消点赞
 export const getCancelRedHeart = (parmas) => {
    console.log(parmas, 'sss');
    return request({
        url: '/Dynamic/CancelRedHeart' + parmas,
        method: 'post',
        data: QS.stringify({}),
        re_header: 1
    })
}
    //api?Tmember=cici&ItemId=3f410a8b77ea499aaa1b97e9a7c50259
    //om/api/?Tmember=cici&ItemId=3f410a8b77ea499aaa1b97e9a7c50259
  //翻译接口
  export const getsubTranslate = (parmas) => {
    console.log(parmas, 'sss');
    return request({
        url: ' Dynamic/SubTranslate' + parmas,
        method: 'post',
        data: QS.stringify({}),
        re_header: 1
    })
}
//获取金币列表接口export const GetYongHu
export const GetGoldList = (parmas) => {
    return request({
        url: 'Info/GetGoldList',
        method: 'get',
        data: parmas
    })
}

//金币充值接口
export const PayPalRecharge = (parmas) => {
    return request({
        url: 'PayPalRecharge/SubRecharge',
        method: 'post',
        data: parmas,
        re_header: 1
    })
}

//个人心ttype2会员列表表和高级会员列表type1
export const GetVipInfoMessage = (parmas) => {
    return request({
        url: 'Info/GetVipInfoMessage',
        method: 'get',
        data: parmas
    })
}
//个中中心翻译列表的接口
export const GetTranslatebagList = (parmas) => {
        return request({
            url: 'Virtual/GetTranslatebagList',
            method: 'get',
            data: parmas
        })
    } //个人中心金币购买会员接口
export const GoldUpdateMemberLevel = (parmas) => {
    return request({
        url: 'PayPalRecharge/GoldUpdateMemberLevel',
        method: 'post',
        data: parmas,
        re_header: 1
    })
}                                                                 